
/* First created by JCasGen Sat Mar 07 18:25:53 UYST 2009 */
package org.idtem.component.freeling;

import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.FSGenerator;
import org.apache.uima.cas.FeatureStructure;
import org.apache.uima.cas.impl.TypeImpl;
import org.apache.uima.cas.Type;
import org.apache.uima.cas.impl.FeatureImpl;
import org.apache.uima.cas.Feature;
import org.apache.uima.jcas.tcas.Annotation_Type;

/** EAGLE[0] = N (Nombre)
 * Updated by JCasGen Thu Sep 24 13:55:55 UYT 2009
 * @generated */
public class Nombre_Type extends Freeling2_Type {
  /** @generated */
  protected FSGenerator getFSGenerator() {return fsGenerator;}
  /** @generated */
  private final FSGenerator fsGenerator = 
    new FSGenerator() {
      public FeatureStructure createFS(int addr, CASImpl cas) {
  			 if (Nombre_Type.this.useExistingInstance) {
  			   // Return eq fs instance if already created
  		     FeatureStructure fs = Nombre_Type.this.jcas.getJfsFromCaddr(addr);
  		     if (null == fs) {
  		       fs = new Nombre(addr, Nombre_Type.this);
  			   Nombre_Type.this.jcas.putJfsFromCaddr(addr, fs);
  			   return fs;
  		     }
  		     return fs;
        } else return new Nombre(addr, Nombre_Type.this);
  	  }
    };
  /** @generated */
  public final static int typeIndexID = Nombre.typeIndexID;
  /** @generated 
     @modifiable */
  public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.idtem.component.freeling.Nombre");
 
  /** @generated */
  final Feature casFeat_Tipo;
  /** @generated */
  final int     casFeatCode_Tipo;
  /** @generated */ 
  public String getTipo(int addr) {
        if (featOkTst && casFeat_Tipo == null)
      jcas.throwFeatMissing("Tipo", "org.idtem.component.freeling.Nombre");
    return ll_cas.ll_getStringValue(addr, casFeatCode_Tipo);
  }
  /** @generated */    
  public void setTipo(int addr, String v) {
        if (featOkTst && casFeat_Tipo == null)
      jcas.throwFeatMissing("Tipo", "org.idtem.component.freeling.Nombre");
    ll_cas.ll_setStringValue(addr, casFeatCode_Tipo, v);}
    
  
 
  /** @generated */
  final Feature casFeat_Genero;
  /** @generated */
  final int     casFeatCode_Genero;
  /** @generated */ 
  public String getGenero(int addr) {
        if (featOkTst && casFeat_Genero == null)
      jcas.throwFeatMissing("Genero", "org.idtem.component.freeling.Nombre");
    return ll_cas.ll_getStringValue(addr, casFeatCode_Genero);
  }
  /** @generated */    
  public void setGenero(int addr, String v) {
        if (featOkTst && casFeat_Genero == null)
      jcas.throwFeatMissing("Genero", "org.idtem.component.freeling.Nombre");
    ll_cas.ll_setStringValue(addr, casFeatCode_Genero, v);}
    
  
 
  /** @generated */
  final Feature casFeat_Numero;
  /** @generated */
  final int     casFeatCode_Numero;
  /** @generated */ 
  public String getNumero(int addr) {
        if (featOkTst && casFeat_Numero == null)
      jcas.throwFeatMissing("Numero", "org.idtem.component.freeling.Nombre");
    return ll_cas.ll_getStringValue(addr, casFeatCode_Numero);
  }
  /** @generated */    
  public void setNumero(int addr, String v) {
        if (featOkTst && casFeat_Numero == null)
      jcas.throwFeatMissing("Numero", "org.idtem.component.freeling.Nombre");
    ll_cas.ll_setStringValue(addr, casFeatCode_Numero, v);}
    
  
 
  /** @generated */
  final Feature casFeat_ClaseSemantica;
  /** @generated */
  final int     casFeatCode_ClaseSemantica;
  /** @generated */ 
  public String getClaseSemantica(int addr) {
        if (featOkTst && casFeat_ClaseSemantica == null)
      jcas.throwFeatMissing("ClaseSemantica", "org.idtem.component.freeling.Nombre");
    return ll_cas.ll_getStringValue(addr, casFeatCode_ClaseSemantica);
  }
  /** @generated */    
  public void setClaseSemantica(int addr, String v) {
        if (featOkTst && casFeat_ClaseSemantica == null)
      jcas.throwFeatMissing("ClaseSemantica", "org.idtem.component.freeling.Nombre");
    ll_cas.ll_setStringValue(addr, casFeatCode_ClaseSemantica, v);}
    
  
 
  /** @generated */
  final Feature casFeat_Grado;
  /** @generated */
  final int     casFeatCode_Grado;
  /** @generated */ 
  public String getGrado(int addr) {
        if (featOkTst && casFeat_Grado == null)
      jcas.throwFeatMissing("Grado", "org.idtem.component.freeling.Nombre");
    return ll_cas.ll_getStringValue(addr, casFeatCode_Grado);
  }
  /** @generated */    
  public void setGrado(int addr, String v) {
        if (featOkTst && casFeat_Grado == null)
      jcas.throwFeatMissing("Grado", "org.idtem.component.freeling.Nombre");
    ll_cas.ll_setStringValue(addr, casFeatCode_Grado, v);}
    
  



  /** initialize variables to correspond with Cas Type and Features
	* @generated */
  public Nombre_Type(JCas jcas, Type casType) {
    super(jcas, casType);
    casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

 
    casFeat_Tipo = jcas.getRequiredFeatureDE(casType, "Tipo", "uima.cas.String", featOkTst);
    casFeatCode_Tipo  = (null == casFeat_Tipo) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Tipo).getCode();

 
    casFeat_Genero = jcas.getRequiredFeatureDE(casType, "Genero", "uima.cas.String", featOkTst);
    casFeatCode_Genero  = (null == casFeat_Genero) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Genero).getCode();

 
    casFeat_Numero = jcas.getRequiredFeatureDE(casType, "Numero", "uima.cas.String", featOkTst);
    casFeatCode_Numero  = (null == casFeat_Numero) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Numero).getCode();

 
    casFeat_ClaseSemantica = jcas.getRequiredFeatureDE(casType, "ClaseSemantica", "uima.cas.String", featOkTst);
    casFeatCode_ClaseSemantica  = (null == casFeat_ClaseSemantica) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_ClaseSemantica).getCode();

 
    casFeat_Grado = jcas.getRequiredFeatureDE(casType, "Grado", "uima.cas.String", featOkTst);
    casFeatCode_Grado  = (null == casFeat_Grado) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Grado).getCode();

  }
}



    